//
//  JWBoJianDetaildCommentCell.m
//  jinwang
//
//  Created by jzb on 2018/3/29.
//  Copyright © 2018年 jzb. All rights reserved.
//

#import "JWBoJianDetaildCommentCell.h"

@implementation JWBoJianDetaildCommentCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(JWBoJianDetailsCommentModel *)model{
    _model = model;
    
    self.Comment_user_nickname.text = model.user_nickname;
    [self.CommentHeaderImg sd_setImageWithURL:[NSURL URLWithString:model.user_portrait] placeholderImage:[UIImage imageNamed:@"默认头像"]];
    self.Comment_timeAndM.text = [NSString stringWithFormat:@"%@    %@",model.time,model.distance];
    
    if ([model.comment_type integerValue] == 0) {
        
        self.yuyingBtn.hidden = YES;
        self.comment_content.hidden = NO;
        self.comment_content.text = model.comment_content;
        
        
    }else if ([model.comment_type integerValue] == 1){
        
        self.yuyingBtn.hidden = NO;
        self.comment_content.hidden = YES;
    }
    if (model.reply.count > 0) {
        
        
    }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
